/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Living Subject Production Class</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A16368 (C-0-T12206-A16368-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getLivingSubjectProductionClass()
 * @model extendedMetaData="name='LivingSubjectProductionClass'"
 * @generated
 */
public enum LivingSubjectProductionClass implements Enumerator {
	/**
	 * The '<em><b>BF</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BF_VALUE
	 * @generated
	 * @ordered
	 */
	BF(0, "BF", "BF"),

	/**
	 * The '<em><b>BR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BR_VALUE
	 * @generated
	 * @ordered
	 */
	BR(1, "BR", "BR"),

	/**
	 * The '<em><b>BL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BL_VALUE
	 * @generated
	 * @ordered
	 */
	BL(2, "BL", "BL"),

	/**
	 * The '<em><b>CO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CO_VALUE
	 * @generated
	 * @ordered
	 */
	CO(3, "CO", "CO"),

	/**
	 * The '<em><b>DA</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DA_VALUE
	 * @generated
	 * @ordered
	 */
	DA(4, "DA", "DA"),

	/**
	 * The '<em><b>DR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DR_VALUE
	 * @generated
	 * @ordered
	 */
	DR(5, "DR", "DR"),

	/**
	 * The '<em><b>DU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DU_VALUE
	 * @generated
	 * @ordered
	 */
	DU(6, "DU", "DU"),

	/**
	 * The '<em><b>FI</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FI_VALUE
	 * @generated
	 * @ordered
	 */
	FI(7, "FI", "FI"),

	/**
	 * The '<em><b>LY</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LY_VALUE
	 * @generated
	 * @ordered
	 */
	LY(8, "LY", "LY"),

	/**
	 * The '<em><b>MT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MT_VALUE
	 * @generated
	 * @ordered
	 */
	MT(9, "MT", "MT"),

	/**
	 * The '<em><b>MU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MU_VALUE
	 * @generated
	 * @ordered
	 */
	MU(10, "MU", "MU"),

	/**
	 * The '<em><b>PL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PL_VALUE
	 * @generated
	 * @ordered
	 */
	PL(11, "PL", "PL"),

	/**
	 * The '<em><b>RC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RC_VALUE
	 * @generated
	 * @ordered
	 */
	RC(12, "RC", "RC"),

	/**
	 * The '<em><b>SH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SH_VALUE
	 * @generated
	 * @ordered
	 */
	SH(13, "SH", "SH"),

	/**
	 * The '<em><b>VL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #VL_VALUE
	 * @generated
	 * @ordered
	 */
	VL(14, "VL", "VL"),

	/**
	 * The '<em><b>WL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #WL_VALUE
	 * @generated
	 * @ordered
	 */
	WL(15, "WL", "WL"),

	/**
	 * The '<em><b>WO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #WO_VALUE
	 * @generated
	 * @ordered
	 */
	WO(16, "WO", "WO");

	/**
	 * The '<em><b>BF</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BF</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BF
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BF_VALUE = 0;

	/**
	 * The '<em><b>BR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BR_VALUE = 1;

	/**
	 * The '<em><b>BL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BL_VALUE = 2;

	/**
	 * The '<em><b>CO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CO
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CO_VALUE = 3;

	/**
	 * The '<em><b>DA</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DA</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DA
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DA_VALUE = 4;

	/**
	 * The '<em><b>DR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DR_VALUE = 5;

	/**
	 * The '<em><b>DU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DU
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DU_VALUE = 6;

	/**
	 * The '<em><b>FI</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FI</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FI
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FI_VALUE = 7;

	/**
	 * The '<em><b>LY</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>LY</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LY
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int LY_VALUE = 8;

	/**
	 * The '<em><b>MT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MT_VALUE = 9;

	/**
	 * The '<em><b>MU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MU
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MU_VALUE = 10;

	/**
	 * The '<em><b>PL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PL_VALUE = 11;

	/**
	 * The '<em><b>RC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RC_VALUE = 12;

	/**
	 * The '<em><b>SH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SH
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SH_VALUE = 13;

	/**
	 * The '<em><b>VL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>VL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #VL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int VL_VALUE = 14;

	/**
	 * The '<em><b>WL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>WL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #WL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int WL_VALUE = 15;

	/**
	 * The '<em><b>WO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>WO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #WO
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int WO_VALUE = 16;

	/**
	 * An array of all the '<em><b>Living Subject Production Class</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final LivingSubjectProductionClass[] VALUES_ARRAY =
		new LivingSubjectProductionClass[] {
			BF,
			BR,
			BL,
			CO,
			DA,
			DR,
			DU,
			FI,
			LY,
			MT,
			MU,
			PL,
			RC,
			SH,
			VL,
			WL,
			WO,
		};

	/**
	 * A public read-only list of all the '<em><b>Living Subject Production Class</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<LivingSubjectProductionClass> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Living Subject Production Class</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LivingSubjectProductionClass get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LivingSubjectProductionClass result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Living Subject Production Class</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LivingSubjectProductionClass getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LivingSubjectProductionClass result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Living Subject Production Class</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LivingSubjectProductionClass get(int value) {
		switch (value) {
			case BF_VALUE: return BF;
			case BR_VALUE: return BR;
			case BL_VALUE: return BL;
			case CO_VALUE: return CO;
			case DA_VALUE: return DA;
			case DR_VALUE: return DR;
			case DU_VALUE: return DU;
			case FI_VALUE: return FI;
			case LY_VALUE: return LY;
			case MT_VALUE: return MT;
			case MU_VALUE: return MU;
			case PL_VALUE: return PL;
			case RC_VALUE: return RC;
			case SH_VALUE: return SH;
			case VL_VALUE: return VL;
			case WL_VALUE: return WL;
			case WO_VALUE: return WO;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private LivingSubjectProductionClass(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //LivingSubjectProductionClass
